package menuBranch;

import java.awt.image.BufferedImage;


// Project: 

/******************************************************************************
 * <p>
 * File: tileObject.java
 * </p>
 * @author  Tadhg O'Sullivan, rogue
 * @author <a href="mailto:tadhg.osullivan@ucdconnect.ie">tadhg.osullivan@ucdconnect.ie</a>
 * @version 1.0, 2007
 * @created 20-Feb-07 5:54:57 PM
 * @revised 21-Feb-07
 * <p>
 * Description: Create a tileObject, holds a BufferedImage, a unique int , a 
 * collisionState boolean, a goal boolean and its x y coordinates.
 * </p>
 *****************************************************************************/

public class tileObject {
	
	protected BufferedImage img; // the image for the tile
	protected int num; // the number assigned to the tile
	protected boolean collisionState; // set to true if causes collision
	protected boolean goal; // set to true if this is a goal tile
	protected int posx; // tile coordinates
	protected int posy; // tile coordinates
	
	public tileObject(BufferedImage i, int n, boolean c, boolean g, int x, int y){
		this.img = i;
		this.num = n;
		this.collisionState = c;
		this.goal = g;
		this.posx = x;
		this.posy = y;
	}
	
	// getter methods
	public BufferedImage getImage(){
		return img;
	}
	
	public int getNum(){
		return num;
	}
	
	public boolean getCollisionState(){
		return collisionState;
	}
	
	public boolean getGoal(){
		return goal;
	}
	
	public int getX(){
		return posx;
	}
	
	public int getY(){
		return posy;
	}
	
	// setter methods
	public void setImage(BufferedImage i){
		this.img = i;
	}
	
	public void setNum(int n){
		this.num = n;
	}
	
	public void setCollisionState(boolean c){
		this.collisionState = c;
	}
	
	public void setGoal(boolean g){
		this.goal = g;
	}
	
	public void setX(int x){
		this.posx = x;
	}
	
	public void setY(int y){
		this.posy = y;
	}
	

}
